'use strict';
const log = require('npmlog')

// 修改log默认输出等级
log.level = process.env.LOG_LEVEL ? process.env.LOG_LEVEL : 'info';

//增加头部内容
log.heading = 'hjx'
//修改头部样式
log.headingStyle = {fg: 'red', bg: 'black'}

//扩展日志类型
log.addLevel('success', 2000, { fg: 'green' })
module.exports = log;
